package com.fjnu.service;

import com.fjnu.dto.ArticleConditionDto;
import com.fjnu.entity.Article;
import com.fjnu.uitl.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ArticleService {
    PageResult<Article> queryByArticleCondition(ArticleConditionDto articleConditionDto, Integer pageNum, Integer pageSize);
    Article queryById(Integer id);
    Article insertArticle(Article article);
    int publishArticle(String articleId,String userId);
    int publishArticlesByBatch(List<Integer> articleIds, String userId);
    int updateArticle(Integer id,ArticleConditionDto articleConditionDto);
    int removeArticle(String articleId, String userId);
}
